#include <iostream>
#include <vector>

using std::vector;
using std::cout;
using std::endl;

int main(int argc, char **argv)
{
    vector<int> ivec;

    for (int i = 0; i < 100; ++i)
        ivec.push_back(i);

    for (auto r : ivec)
        cout << r << endl;

    for (auto &r : ivec)
        r *= 2;

    for (int i = 0; i < ivec.size(); ++i)
        cout << ivec[i];

    return 0;
}